<?php

namespace app\api\request\order;

use think\Validate;

class OrderMiningRequest extends Validate
{
    protected $rule = [
        'mining_id' => 'require',
        'number' => 'require|integer',
        'coin_id' => 'require|integer',
    ];

    protected $scene = [
        'create' => ['mining_id', 'number'],
        'machineCenter' => ['coin_id'],
        'info' => ['order_no'],
    ];
}